<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head>

<?php
include "../config/config.inc.php";
//connect to mysql database
mysql_connect($host,$username,$password);
@mysql_select_db($database) or die( "Unable to select database");

$query="SELECT * FROM bids WHERE BID_id='$_GET[bidid]'";

$result=mysql_query($query);

$project=mysql_result($result,0,"project");
$location=mysql_result($result,0,"Location");
$city=mysql_result($result,0,"city");
$biddate=mysql_result($result,0,"bid_date");
$bidamount=mysql_result($result,0,"bid_amount");
$altamount=mysql_result($result,0,"bid_alternates");
$contact=mysql_result($result,0,"General_con");
$comments=mysql_result($result,0,"comment");
?>



  <title>Project Details</title>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="/style/detail.css" >

  <!-- Hack to avoid flash of unstyled content in IE -->
  <script> </script>
</head><body id="onecolumn">
  <div id="container">
    <div class="wrapper">
      <div id="header">
        <div class="wrapper">
          <h1 id="page-title"><div id="g_title"><?php echo"$project";?></div></h1>
          <div style="clear: both;"></div>

          <p class="description"><a href="/">|Home|</a><a href="./Edit.php?bidid=<?php echo "$_GET[bidid]" ?>">|Edit|</a></p>
		  <div id="g_description">
		  	  

		  </div>
          <div style="clear: both;"></div>
        </div>
      </div>
      <!-- /editable --><!-- /wrapper --><!-- /header -->
      <div id="main-content">
        
        <div class="wrapper">
          <div class="content-item">
			</div>
			<div id="g_body">
			<?php
				echo "<form action='./insert.php' method='post'>";
				echo "<p><b>Bid Number: <input type='text' name='bidid' value='$_GET[bidid]'></p>";
				echo "<p><b>Bid Date: <input type='text' name='biddate' value='$biddate' /></p>";
				echo "<p>Bid Amount: <input type='text' name='bidamount' value='$bidamount' /></p>";
				echo "<p>Alternate Bid: <input type='text' name='altamount' value='$altamount' /></p>"; 
				echo "<p>State: $location</p>";
				echo "<p><b>City: </b><input type='text' name='city' value='$city'/></p>";
				echo "<p>General Contractor: <input type='text' name='contractor' value='$gen_con' /></p>"; 
				echo "<p><select name='status'>
						<option value='1'>Pending..</option>
						<option value='2'>Lost</option>
						<option value='3'>Won</option>
						<option value='4'>No Bid</option>
					  <select></p>";	
				echo "<p>Comment: <textarea name='comments' rows='3' cols='25' >$comments</textarea></p>";
				echo "<input type='submit' />";
				echo "<form>";
			?>
			
			</div>
		  </div>
          <div style="clear: both;"></div>
        </div>
      </div>
      <!-- /wrapper --><!-- /main-content -->
      <div id="footer"><div class="wrapper">
        <hr>
        <p></p><div id="g_footer">&nbsp;</div>
        <div style="clear: both;"></div>
      </div></div>
      <!-- /wrapper --><!-- /footer -->
    </div>
  </div>
<!-- /wrapper --><!-- /container -->

<div id="extraDiv1"><span></span></div><div id="extraDiv2"><span></span></div>
<div id="extraDiv3"><span></span></div><div id="extraDiv4"><span></span></div>
<div id="extraDiv5"><span></span></div><div id="extraDiv6"><span></span></div>

</body></html>